<template>
  <div>
    <div class="x-card-header">
      <span>{{ title }}</span>
      <span>{{ more }} ></span>
    </div>
    <div class="x-card-content">
      <!-- 默认插槽 -->
      <slot />
    </div>
  </div>
</template>

<script lang="ts" setup>
defineProps<{
  title: string;
  more: string;
}>();
</script>

<style scoped lang="scss">
.x-card-header {
  padding: 0 10rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #00cc99;
  height: 50rpx;
  font-size: 26rpx;
  color: #333;
}

.x-card-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20rpx 0;
}
</style>
